import request from '@/utils/request'

// 查询电能表列表
export function listMdMeter(query) {
  return request({
    url: '/meter/mdMeter/list',
    method: 'get',
    params: query
  })
}

// 查询电能表详细
export function getMdMeter(meterId) {
  return request({
    url: '/meter/mdMeter/' + meterId,
    method: 'get'
  })
}

// 新增电能表
export function addMdMeter(data) {
  return request({
    url: '/meter/mdMeter',
    method: 'post',
    data: data
  })
}

// 修改电能表
export function updateMdMeter(data) {
  return request({
    url: '/meter/mdMeter',
    method: 'put',
    data: data
  })
}

// 删除电能表
export function delMdMeter(meterId) {
  return request({
    url: '/meter/mdMeter/' + meterId,
    method: 'delete'
  })
}
